package com.example.springboot.task.scheduled;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * 定时任务
 * @Author:ChenZhangKun
 * @Date: 2020/10/27 20:11
 */
@Service
public class ScheduledService {
    /**
     * 秒，分，时，日，月，周
     */
    @Scheduled(cron = "0 * * * * MON-FRI")
    public void hello(){
        System.out.println("hello,czk");
    }
}
